package com.tulele.vtool.bus.mapper;

import com.tulele.vtool.model.UserGroupGzh;
import com.tulele.vtool.model.UserGroupOpenId;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component(value = "UserGroupGzhMapper")
public interface UserGroupGzhMapper {
    UserGroupGzh getUserGroupGzh(@Param("gzhCode") String gzhCode);

    List<UserGroupGzh> getUserGroupGzhs(@Param("groupCode") String groupCode);

    void addUserGroupOpenId(UserGroupOpenId userGroupOpenId);

    UserGroupOpenId getUserGroupUserId(@Param("gzhCode") String gzhCode, @Param("openId") String openId);

    UserGroupOpenId getUserGroupUserIdByUnionId(@Param("gzhCode") String gzhCode, @Param("unionId") String unionId);

    UserGroupOpenId getUserOpenId(@Param("gzhCode") String gzhCode, @Param("userId") Integer userId);

    List<UserGroupOpenId> getUserGroupOpenIds(@Param("userId") Integer userId);
}
